// 引入 models
const models = require('../models');
let shopsList = {
    method: 'GET',
    path: '/shops/portion',
    handler: async (request, reply) => {
        // 通过 await 来异步查取数据
        const result = await models.shops.findAll();
        reply(result)
    }
}
module.exports = [shopsList];
